<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<title>${proj.name }</title>
<link rel="shortcut icon" href="favicon.ico">
<!--[if lt IE 8]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->

<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
	src="${path }/resource/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="${path }/resource/js/systools/MBase.js"></script>

<!-- 界面单独引入的其他样式和脚本 -->
<link rel="stylesheet"
	href="${path }/resource/plugin/zTree/zTreeStyle/zTreeStyle.css"
	type="text/css">
<script type="text/javascript"
	src="${path }/resource/plugin/zTree/jquery.ztree.core-3.5.min.js"></script>
	
<script type="text/javascript"
	src="${path }/resource/plugin/syntaxhighlighter_3.0.83/scripts/shCore.js"></script>
<script type="text/javascript"
	src="${path }/resource/plugin/syntaxhighlighter_3.0.83/scripts/shBrushJScript.js"></script>
<link type="text/css" rel="stylesheet"
	href="${path }/resource/plugin/syntaxhighlighter_3.0.83/styles/shCore.css" />
<link type="text/css" rel="stylesheet"
	href="${path }/resource/plugin/syntaxhighlighter_3.0.83/styles/shCoreDefault.css" />
<script type="text/javascript">
	SyntaxHighlighter.all();
</script>
<style type="text/css">
.hkdg {
	width: 100px;
	height: 100px;
	margin: 5px;
	border: 1px solid #aeaeae;
	border-radius: 5px;
	padding: 3px;
	margin: 5px;
}

blockquote {
	font-size: 14px;
	line-height: 25px;
}

.title {
	color: #6f5499;
	font-size: 32px;
	text-shadow: 2px 3px 2px #ababab;
}
</style>

</head>

<body class="gray-bg">
	<jsp:include page="_top.jsp"></jsp:include>

	<h2 class="text-center title">APP接口说明</h2>
	<br>
	<blockquote class="center-block ">
		<h2 class=" text-primary">接口统一返回参数说明</h2>
		
<pre class="brush: js;" id="exp" name="code" >
{
    status:"ok", 			//status 表示请求状态   ok-请求成功 , err-请求失败 , unkwonerr-后台程序报错
    info:"操作成功", 		//info 表示返回的提示信息  err状态返回错误原因，unkwonerr-返回异常的描述
    mapInfo:{
    	user:{ 
    		name:"姜友瑶",
    		qq:"935090232"
    	},
    	goods:{
    		goodsId:3,
    		count:2
    	}
    }, //map 返回的是键值对对象
    rows:[
        {
            "goodsId":1,                           //商品id
            "goodsName":"五年高考，三年模拟",        //商品名称
        },
    ],						// rows表示返回的是数组
    total:1  				//total 表示返回总的查询条数
}

		</pre>
		
	</blockquote>


</body>
</html>